import { createApp } from 'vue';
import '@/styles/index.scss'; // global css
import App from './App.vue';
import router from './router';
import store from './store';
import JSBridge from './utils/jsbridge';
import ComponentLoader from '@/components/loader';
import Http from './request/http';

const app = createApp(App);

import { Skeleton, Loading, Overlay, Image, Button } from 'vant';
// 引入组件样式
import 'vant/lib/index.css';

// // 挂载请求库
app.config.globalProperties.HTTP = Http;
// // 挂载JS桥接库
app.config.globalProperties.JSBridge = JSBridge;
// // 引入自定义组件库
app.use(ComponentLoader);

app.use(Skeleton);
app.use(Loading);
app.use(Overlay);
app.use(Image);
app.use(Button);

app.use(store).use(router).mount('#app');
